﻿<%@ Page Title="" Language="C#"  EnableViewState="false"  MasterPageFile="~/PortalParts/PageMore.Master" AutoEventWireup="true" CodeBehind="PartyEduMaterialMore.aspx.cs" Inherits="ZHDJ.Web.Portal.Edu.PartyEduMaterialMore" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="/Resource/js/jquery/jquery.pagination.js"></script>
    <script>
        var pageSize = 20;
        $(function () {
            var totalCount = $("#ctl00_ContentPlaceHolder1_hfTotalCount").val();
            $("#pagination").pagination(totalCount, {
                num_edge_entries: 1, //边缘页数
                num_display_entries: 4, //主体页数
                callback: pageselectCallback,
                items_per_page: pageSize, //每页显示1项
                prev_text: "上一页",
                next_text: "下一页",
                prev_show_always: totalCount != "0",
                next_show_always: totalCount != "0"
            });

            function pageselectCallback(pageIndex, jq) {
                $.get("PartyEduMaterialMore.aspx", {
                    PageIndex: pageIndex + 1,
                    PageSize: pageSize,
                    category: querystring("category"),
                    r: (new Date()).getTime()
                },
                function (data) {
                    if (data == null || data == "") {
                        data = "<li style=\"text-align:center;\">此栏目暂无信息</li>";
                    }
                    var $content = $(data);
                    $(".news_lb").html($content);
                });
                return false;
            }
        });
        function querystring(key) {
            var re = new RegExp('(?:\\?|&)' + key + '=(.*?)(?=&|$)', 'gi');
            var r = [], m;
            while ((m = re.exec(document.location.search)) != null) r.push(m[1]);
            return r.toString();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:HiddenField ID="hfTotalCount" runat="server" Value="10" />
    <asp:HiddenField ID="hfCategory" runat="server" />
    <asp:Label runat="server" ID="dd"> </asp:Label>
    <div class="ny_box" style="">
        <ul class="news_lb">
            
        </ul>
         <div class="pagination">
        <div id="pagination">
        </div>
    </div>
    </div>
   
</asp:Content>
